package com.demo.house.service;

import com.demo.house.entity.User;
import com.demo.house.vo.RequestVo.LoginVo;
import com.demo.house.vo.request.RequestMessageVo;
import com.demo.house.vo.request.RequestRegisteredVo;
import com.demo.house.vo.request.RequestUserVo;

/**
 * @author zhushubiao
 * @title: UserService
 * @projectName House
 * @description: TODO
 * @date 2021/3/16 14:57
 */
public interface UserService {
    //根据id查询
    User getById(Integer id);
    //根据id删除
    RequestUserVo deleteByid(Integer id);

    //注册
    int register(RequestRegisteredVo requestRegisteredVo);

    //根据id修改
    User updateByid(RequestUserVo requestUserVo);

    //修改
    int update(User user);
    int updateByPrimaryKeySelective(User user);
    User getUsername(String username);
/*登入*/
    User login(LoginVo loginVo);

//    User selectNameAndTelephone(Integer id);

}
